﻿using System;
using System.Runtime.InteropServices;

namespace GetWallPagerFromBing
{
    class Win32Util
    {
        [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)]
        public static extern bool SystemParametersInfo(int uiAction, int uiParam, string pvParam, int fWinIni);

        [DllImport("Kernel32.dll", CharSet = CharSet.Auto)]
        public static extern Int32 GetLastError();


        [DllImport("winInet.dll")]
        public static extern bool InternetGetConnectedState(ref int dwFlag, int dwReserved);
    }
}
